package com.java.test;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;


/**
 * @author wangning
 * @create 2021-12-24 16:36
 */
public class MyTest01 {

	@Test
	public void test01() {
		String ss = "AAA";
		System.out.println(ss.toUpperCase());
		List<String> list = new ArrayList<>();
		list.add("1");
		for (String s : list) {
			System.out.println(s);
		}

		System.out.println("测试\r\n换行");
	}

	@Test
	public void test02() {
		String a = "abcdef";
		System.out.println(a.indexOf("cd"));
		System.out.println(a.contains("cd"));
		if(a.contains("cd")) {

		}
	}

}
